#include "include/Session.h"

Client::Client(boost::asio::io_service &io_service)
	: socket(io_service), is_connect(false)
{
	p_endpoint = NULL;
}

Client::~Client()
{
	if(p_endpoint)
	{
		delete p_endpoint;
		p_endpoint = NULL;
	}
}

void Client::Init(std::string server_ip, short port)
{
	p_endpoint = new tcp::endpoint(boost::asio::ip::address_v4::from_string(server_ip), port);
}
